// 封装获取用户信息请求
import axios from '@/utils/request'

// 登录请求
export const reqLogin = (data) => {
  return axios({
    method: 'post',
    url: '/api/login',
    data
  })
}

// 注册请求
export const reqReg = (data) => {
  return axios({
    method: 'post',
    url: '/api/reg',
    data
  })
}
// 获取基本信息请求
export const GetUserInfo = () => {
  return axios({
    method: 'GET',
    url: '/my/userinfo',
    headers: {
      Authorization: localStorage.getItem('token')
    }
  })
}
